package com.wpl.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WorkorderhistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WorkorderhistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNull() {
            addCriterion("orderid is null");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNotNull() {
            addCriterion("orderid is not null");
            return (Criteria) this;
        }

        public Criteria andOrderidEqualTo(String value) {
            addCriterion("orderid =", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotEqualTo(String value) {
            addCriterion("orderid <>", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThan(String value) {
            addCriterion("orderid >", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThanOrEqualTo(String value) {
            addCriterion("orderid >=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThan(String value) {
            addCriterion("orderid <", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThanOrEqualTo(String value) {
            addCriterion("orderid <=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLike(String value) {
            addCriterion("orderid like", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotLike(String value) {
            addCriterion("orderid not like", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidIn(List<String> values) {
            addCriterion("orderid in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotIn(List<String> values) {
            addCriterion("orderid not in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidBetween(String value1, String value2) {
            addCriterion("orderid between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotBetween(String value1, String value2) {
            addCriterion("orderid not between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidIsNull() {
            addCriterion("handlepersonid is null");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidIsNotNull() {
            addCriterion("handlepersonid is not null");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidEqualTo(Integer value) {
            addCriterion("handlepersonid =", value, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidNotEqualTo(Integer value) {
            addCriterion("handlepersonid <>", value, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidGreaterThan(Integer value) {
            addCriterion("handlepersonid >", value, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidGreaterThanOrEqualTo(Integer value) {
            addCriterion("handlepersonid >=", value, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidLessThan(Integer value) {
            addCriterion("handlepersonid <", value, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidLessThanOrEqualTo(Integer value) {
            addCriterion("handlepersonid <=", value, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidIn(List<Integer> values) {
            addCriterion("handlepersonid in", values, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidNotIn(List<Integer> values) {
            addCriterion("handlepersonid not in", values, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidBetween(Integer value1, Integer value2) {
            addCriterion("handlepersonid between", value1, value2, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonidNotBetween(Integer value1, Integer value2) {
            addCriterion("handlepersonid not between", value1, value2, "handlepersonid");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameIsNull() {
            addCriterion("handlepersonname is null");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameIsNotNull() {
            addCriterion("handlepersonname is not null");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameEqualTo(String value) {
            addCriterion("handlepersonname =", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameNotEqualTo(String value) {
            addCriterion("handlepersonname <>", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameGreaterThan(String value) {
            addCriterion("handlepersonname >", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameGreaterThanOrEqualTo(String value) {
            addCriterion("handlepersonname >=", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameLessThan(String value) {
            addCriterion("handlepersonname <", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameLessThanOrEqualTo(String value) {
            addCriterion("handlepersonname <=", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameLike(String value) {
            addCriterion("handlepersonname like", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameNotLike(String value) {
            addCriterion("handlepersonname not like", value, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameIn(List<String> values) {
            addCriterion("handlepersonname in", values, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameNotIn(List<String> values) {
            addCriterion("handlepersonname not in", values, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameBetween(String value1, String value2) {
            addCriterion("handlepersonname between", value1, value2, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlepersonnameNotBetween(String value1, String value2) {
            addCriterion("handlepersonname not between", value1, value2, "handlepersonname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidIsNull() {
            addCriterion("handlegroupid is null");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidIsNotNull() {
            addCriterion("handlegroupid is not null");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidEqualTo(Integer value) {
            addCriterion("handlegroupid =", value, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidNotEqualTo(Integer value) {
            addCriterion("handlegroupid <>", value, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidGreaterThan(Integer value) {
            addCriterion("handlegroupid >", value, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidGreaterThanOrEqualTo(Integer value) {
            addCriterion("handlegroupid >=", value, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidLessThan(Integer value) {
            addCriterion("handlegroupid <", value, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidLessThanOrEqualTo(Integer value) {
            addCriterion("handlegroupid <=", value, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidIn(List<Integer> values) {
            addCriterion("handlegroupid in", values, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidNotIn(List<Integer> values) {
            addCriterion("handlegroupid not in", values, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidBetween(Integer value1, Integer value2) {
            addCriterion("handlegroupid between", value1, value2, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupidNotBetween(Integer value1, Integer value2) {
            addCriterion("handlegroupid not between", value1, value2, "handlegroupid");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameIsNull() {
            addCriterion("handlegroupname is null");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameIsNotNull() {
            addCriterion("handlegroupname is not null");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameEqualTo(String value) {
            addCriterion("handlegroupname =", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameNotEqualTo(String value) {
            addCriterion("handlegroupname <>", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameGreaterThan(String value) {
            addCriterion("handlegroupname >", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameGreaterThanOrEqualTo(String value) {
            addCriterion("handlegroupname >=", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameLessThan(String value) {
            addCriterion("handlegroupname <", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameLessThanOrEqualTo(String value) {
            addCriterion("handlegroupname <=", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameLike(String value) {
            addCriterion("handlegroupname like", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameNotLike(String value) {
            addCriterion("handlegroupname not like", value, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameIn(List<String> values) {
            addCriterion("handlegroupname in", values, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameNotIn(List<String> values) {
            addCriterion("handlegroupname not in", values, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameBetween(String value1, String value2) {
            addCriterion("handlegroupname between", value1, value2, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andHandlegroupnameNotBetween(String value1, String value2) {
            addCriterion("handlegroupname not between", value1, value2, "handlegroupname");
            return (Criteria) this;
        }

        public Criteria andOprationIsNull() {
            addCriterion("opration is null");
            return (Criteria) this;
        }

        public Criteria andOprationIsNotNull() {
            addCriterion("opration is not null");
            return (Criteria) this;
        }

        public Criteria andOprationEqualTo(String value) {
            addCriterion("opration =", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationNotEqualTo(String value) {
            addCriterion("opration <>", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationGreaterThan(String value) {
            addCriterion("opration >", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationGreaterThanOrEqualTo(String value) {
            addCriterion("opration >=", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationLessThan(String value) {
            addCriterion("opration <", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationLessThanOrEqualTo(String value) {
            addCriterion("opration <=", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationLike(String value) {
            addCriterion("opration like", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationNotLike(String value) {
            addCriterion("opration not like", value, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationIn(List<String> values) {
            addCriterion("opration in", values, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationNotIn(List<String> values) {
            addCriterion("opration not in", values, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationBetween(String value1, String value2) {
            addCriterion("opration between", value1, value2, "opration");
            return (Criteria) this;
        }

        public Criteria andOprationNotBetween(String value1, String value2) {
            addCriterion("opration not between", value1, value2, "opration");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createdate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createdate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createdate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createdate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createdate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createdate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createdate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createdate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createdate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createdate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createdate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createdate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andSuggestionIsNull() {
            addCriterion("suggestion is null");
            return (Criteria) this;
        }

        public Criteria andSuggestionIsNotNull() {
            addCriterion("suggestion is not null");
            return (Criteria) this;
        }

        public Criteria andSuggestionEqualTo(String value) {
            addCriterion("suggestion =", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionNotEqualTo(String value) {
            addCriterion("suggestion <>", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionGreaterThan(String value) {
            addCriterion("suggestion >", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionGreaterThanOrEqualTo(String value) {
            addCriterion("suggestion >=", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionLessThan(String value) {
            addCriterion("suggestion <", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionLessThanOrEqualTo(String value) {
            addCriterion("suggestion <=", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionLike(String value) {
            addCriterion("suggestion like", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionNotLike(String value) {
            addCriterion("suggestion not like", value, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionIn(List<String> values) {
            addCriterion("suggestion in", values, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionNotIn(List<String> values) {
            addCriterion("suggestion not in", values, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionBetween(String value1, String value2) {
            addCriterion("suggestion between", value1, value2, "suggestion");
            return (Criteria) this;
        }

        public Criteria andSuggestionNotBetween(String value1, String value2) {
            addCriterion("suggestion not between", value1, value2, "suggestion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}